package org.jeecg.entity.meter;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description: 仪表账户表
 * @Author: jeecg-boot
 * @Date: 2020-12-01
 * @Version: V1.0
 */
@Data
@TableName("meter_account")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "meter_account对象", description = "仪表账户表")
public class MeterAccount {

    /**
     * 创建者id
     */
    @Excel(name = "创建者id", width = 15)
    @ApiModelProperty(value = "创建者id")
    private String createBy;
    /**
     * 创建时间
     */
    @Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createdTime;
    /**
     * delFlag
     */
    @Excel(name = "delFlag", width = 15)
    @ApiModelProperty(value = "delFlag")
    private String delFlag;
    /**
     * id
     */
    @TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "id")
    private String id;
    /**
     * 仪表id
     */
    @Excel(name = "仪表id", width = 15)
    @ApiModelProperty(value = "仪表id")
    private String meterId;
    /**
     * 总充值金额
     */
    @Excel(name = "总充值金额", width = 15)
    @ApiModelProperty(value = "总充值金额")
    private String payAmount;
    /**
     * 单价
     */
    @Excel(name = "单价", width = 15)
    @ApiModelProperty(value = "单价")
    private String price;
    /**
     * 读表时间
     */
    @Excel(name = "读表时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "读表时间")
    private Date readTime;
    /**
     * 剩余金额
     */
    @Excel(name = "剩余金额", width = 15)
    @ApiModelProperty(value = "剩余金额")
    private String remainAmount;
    /**
     * 剩余量
     */
    @Excel(name = "剩余量", width = 15)
    @ApiModelProperty(value = "剩余量")
    private String remainUse;
    /**
     * tenantId
     */
    @Excel(name = "tenantId", width = 15)
    @ApiModelProperty(value = "tenantId")
    private String tenantId;
    /**
     * 总用量
     */
    @Excel(name = "总用量", width = 15)
    @ApiModelProperty(value = "总用量")
    private String totalUse;
    /**
     * 修改者id
     */
    @Excel(name = "修改者id", width = 15)
    @ApiModelProperty(value = "修改者id")
    private String updateBy;
    /**
     * 修改时间
     */
    @Excel(name = "修改时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private Date updatedTime;
    @TableField(exist = false)
    private String loss;
    @TableField(exist = false)
    private String rate;
    @TableField(exist = false)
    private Integer warningUse;
    @TableField(exist = false)
    private String meterCode;
    @TableField(exist = false)
    private Integer switchUse;
}
